/**该文件仅存放旅社相关的接口Api */
import myaxios from "../MyAxios";
// 引入路径前缀
import BASEURL from '../BaseUrl'
import axios from "axios";
const {BMDURL} = BASEURL

const lsApi = {
     /**查询所有旅社 */
     query(params) {
        return myaxios.get(BMDURL + "/fy",params)
    },
    /**分页查询旅社 */
    queryRoom(params) {
        return myaxios.get(BMDURL + "/fy/list",params)
    },
    /**
     * 按城市编号查出房子
     */
    queryRoomById(params) {
        return myaxios.get(BMDURL + "/fy/query", params)
    },
    // 通过rid查询房源
    queryByRid(params) {
        return myaxios.post(BMDURL + "/fy/rid", params)
    },
    
    // 通过酒店编号查询出当前酒店的房间
    queryRoomList(params) {
        return myaxios.get(BMDURL + "/room/info/query",params)
    },

    // 通过rid查出当前房间的信息
    queryHotelRoom(params) {
        return myaxios.get(BMDURL + "/room/infor/query",params)
    },

    //关联城市和房源  (分页)
    queryCity(params) {
        return myaxios.post(BMDURL + "/fy/cs",params)
    },
    //通过城市查询房源  (分页)
    queryCityRoom(params) {
        return myaxios.post(BMDURL + "/fy/csfy",params)
    },
}
export default lsApi;